package com.io.buff;

/**
 * 处理流
 */
public class BufferedReader_ extends Reader_ {

    private Reader_ reader_;

    public BufferedReader_(Reader_ reader_) {
        this.reader_ = reader_;
    }

    public void readFile() {
        this.reader_.readFile();
    }

    public void readString() {
        this.reader_.readString();
    }

    // 功能扩展 -- 读取多个文件
    public void readFiles(int num) {
        for (int i = 0; i < num; i++) {
            this.reader_.readFile();
        }
    }

    // 批量读取字符串
    public void readStrings(int num) {
        for (int i = 0; i < num; i++) {
            this.reader_.readString();
        }
    }
}
